﻿namespace LogicStudio.Framework.UI.Conversores
{
    using System.Windows.Data;

    public class ConvertidorFechaCorta : IValueConverter
    {
        public object Convert(object value, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return value != null ? string.Format("{0:dd/MM/yyyy}", value) : string.Empty;
        }

        public object ConvertBack(object value, System.Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return null;
        }
    }
}